IPGetMtu


C Specification

#include <dolphin/ip.h>

void IPGetMtu ( IPInterface* interface, s32* mtu );

Description

IPGetMtu() gets the maximum transmission unit (MTU) of the specified interface.

Note:  The default MTU value of the Ethernet is 1500 bytes. If PPPoE is used, however, the MTU value is shrunk appropriately at the LCP negotiation phase to compensate PPPoE and other header space.

Arguments

interface Pointer to IPInterface to get the MTU size. Use NULL to specify the default network interface.
mtu Pointer to s32 that receives the interface MTU in bytes.

Return Values

None.

See Also